/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.platform.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.platform.entity.Account;

import iaas.repository.BaseRepository;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface AccountDao extends BaseRepository<Account, Long> ,JpaSpecificationExecutor<Account>{

	/**
	 * 验证卡号在某银行是否存在
	 * @param corpId
	 * @param cardno
	 * @return
	 */
	public List<Account> findByCorpIdAndBankcard(Long corpId,String bankcard);
	
	
	/**
	 * 查询某企业的账户
	 * @param corpId
	 * @return
	 */
	public List<Account> findByCorpId(Long corpId);
	
	/** 验证银行账户是否存在 */
	public Account findByCorpIdAndBankcardAndIdentitycardAndTelephone(Long corpid,String bankcard,String identitycard,String telephone);

}


